﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BTKERP.Model.Web;

namespace BTKERP.MVCWeb.Controllers
{
    public class ControllerBase : Controller
    {
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            base.OnActionExecuting(filterContext);
            ViewBag.EnableSearch = false;
            ViewBag.CurrentPageId = 2;
        }

        protected SessionEntity SessionEntity
        {
            get
            {
                return Session["UserSession"] as SessionEntity;
            }
            set
            {
                Session["UserSession"] = value;
            }
        }

    }
}
